import Vue from 'vue'
import Vuex from 'vuex'
import tabbar from './tabbar'
import cinema from './cinema'
import state from './state'
import city from './city'
import createPersistedState from "vuex-persistedstate"
Vue.use(Vuex)
const store = new Vuex.Store({
  plugins: [createPersistedState()],
  state,
  getters: {
    changeA(state) {
      return state.a + 100
    }
  },
  modules: { // 来合并所有的模块
    tabbar,
    cinema,
    city
  }
})
export default store
